package oldtest;

import ai.*;

public class TicTacTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Minimax mm = new Minimax();
		TTT ttt = new TTT();
		int[] m1 = {1,1};
		int[] m2 = {0,0};
		int[] m3 = {0,2};
		int[] m4 = {0,1};
		int[] m5 = {1,2};
		int[] m6 = {1,0};
		int[] m7 = {1,2};
		Chip one = new Chip(m1,1);
		Chip two = new Chip(m2,2);
		Chip thr = new Chip(m3,1);
		Chip fou = new Chip(m4,2);
		Chip fiv = new Chip(m5,1);
		Chip six = new Chip(m6,2);
		Chip sev = new Chip(m7,1);
		ttt.applyMove(one);
		ttt.applyMove(two);
		ttt.applyMove(thr);
		ttt.applyMove(fou);
		ttt.applyMove(fiv);
		ttt.applyMove(six);
		//ttt.applyMove(sev);
		Chip cp = (Chip)mm.searchBestMove(ttt, 3);
		System.out.println("Player "+cp.owner);
		System.out.println("Position "+cp.position[0]+","+cp.position[1]);
	}

}

